Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(map): Extend supported Key Types for C# codegen #71

Merged
merged 10 commits into from
Jan 25, 2024

Conversation

jonathan-casey
Copy link
Member

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to main from fork:branchname

Signed-off-by: Jonathan Casey <[email protected]>
Signed-off-by: Jonathan Casey <[email protected]>
Signed-off-by: Jonathan Casey <[email protected]>
Signed-off-by: Jonathan Casey <[email protected]>
@coveralls
Copy link

coveralls commented Nov 13, 2023

Coverage Status

coverage: 98.812% (-0.1%) from 98.928%
when pulling f69d1d0 on jonathan/codegen_map_csharp
into 01bb536 on main.

@@ -5980,7 +5980,7 @@ public abstract class Person : Participant {
public string ssn { get; set; }
public float height { get; set; }
public System.DateTime dob { get; set; }
public Dictionary<string, KinTelephone> nextOfKin { get; set; }
public Dictionary<string, System.DateTime> nextOfKin { get; set; }
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These types seem to have got more general. Is this expected?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the underlying Primitive of a Scalar should be printed, in place of its alias name

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beware the logic that handles UUID. Did you test with a map that has a UUID as a key or value? It looks like the code generator doesn't unbox those.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dselman logic added to handle concerto.scalar.UUID for k & v

@dselman dselman merged commit a9e4c3b into main Jan 25, 2024
11 checks passed
@dselman dselman deleted the jonathan/codegen_map_csharp branch January 25, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants